package com.example.demo.service;

import com.example.demo.pojo.Admin;
import com.example.demo.pojo.User;
import com.example.demo.pojo.request.AdminPageRequest;
import com.example.demo.pojo.request.BaseRequest;
import com.example.demo.pojo.request.PasswordRequest;
import com.example.demo.pojo.request.UserPageRequest;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAdminService {
    List<Admin> list();


    PageInfo<Admin> page(AdminPageRequest baseRequest);

    void save(Admin admin);

    Admin getUser(Integer id);


    void getIDUser(Admin admin);

    void delete(Integer id);

    void changePassword(PasswordRequest passwordRequest);
}
